<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>std.windows.charset</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "std.windows.charset";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/std.windows.charset.html" class="symbol">std.windows.charset</a></h1>
  
<div class="summary">Support UTF-8 on Windows 95, 98 and ME systems.</div>
<dl>
<dt class="decl">char</dt>* <a class="symbol _function" name="toMBSz" href="./htmlsrc/std.windows.charset.html#L32" kind="function" beg="32" end="61">toMBSz</a><span class="params">(string <em>s</em>, uint <em>codePage</em> = 0)</span>; <a title="Permalink to this symbol" href="#toMBSz" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.windows.charset.html#L32">#</a></dl>
<dd class="ddef">
<div class="summary">Converts the UTF-8 string s into a null-terminated string in a Windows
 8-bit character set.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>s</em></td><td>UTF-8 string to convert.</td></tr>
<tr><td><em>codePage</em></td><td>is the number of the target codepage, or
   0 - ANSI,
   1 - OEM,
   2 - Mac</td></tr></table>
<p class="sec_header">Authors:</p>yaneurao, Walter Bright, Stewart Gordon</dd>
<dt class="decl">string <a class="symbol _function" name="fromMBSz" href="./htmlsrc/std.windows.charset.html#L77" kind="function" beg="77" end="106">fromMBSz</a><span class="params">(invariant( char)* <em>s</em>, int <em>codePage</em> = 0)</span>; <a title="Permalink to this symbol" href="#fromMBSz" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.windows.charset.html#L77">#</a></dt>
<dd class="ddef">
<div class="summary">Converts the null-terminated string s from a Windows 8-bit character set
 into a UTF-8 char array.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>s</em></td><td>UTF-8 string to convert.</td></tr>
<tr><td><em>codePage</em></td><td>is the number of the source codepage, or
   0 - ANSI,
   1 - OEM,
   2 - Mac</td></tr></table>
<p class="sec_header">Authors:</p>Stewart Gordon, Walter Bright</dd>)
</div>
<div id="footer">
  <p>Copyright © 1999-2008 by Digital Mars ®, All Rights Reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Sun Dec 28 04:26:47 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>